home *** CD-ROM | disk | FTP | other *** search
- Path: redstone.interpath.net!mercury!softbase
- From: softbase@mercury.interpath.net (Scott McMahan - Softbase Systems)
- Newsgroups: comp.lang.c
- Subject: Re: HELP NEEDED: What the hell is wrong with my program?
- Date: 12 Jan 1996 23:36:59 GMT
- Organization: Interpath -- Providing Internet access to North Carolina
- Message-ID: <4d6rar$nq3@redstone.interpath.net>
- References: <4cvu6r$vcs@carbon.cudenver.edu>
- NNTP-Posting-Host: mercury.interpath.com
- X-Newsreader: TIN [version 1.2 PL2]
-
- ELLIE XIAO-YU LI (exli@ouray.cudenver.edu) wrote:
- : I am writing a C program on unix platforms. When I run my program, I keep
- : getting a system warning "Unaligned access...".
- : Does anyone out there know what
- : this "unaligned access" crap is and what cuases the problem?
-
- Sounds like you are programming on some type of processor which
- demands memory accesses start on some alignment. The best way to fix
- it is to turn on all of the compiler warnings and messages you possibly
- can, and see if the compiler can lead you towards what it doesn't like.
- HP's PA-RISC chips are a big headache for aligned data.
-
- Or, you could just program on something like an x86 chip that doesn't
- care how you access data!
-
- Scott
-
-
-